namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter18.Listing18_26
{
    #region INCLUDE
    using System;

    #region EXCLUDE
    public class Program
    {
        public static void Main()
        {
            #endregion EXCLUDE
            dynamic data =
              "Hello!  My name is Inigo Montoya";
            Console.WriteLine(data);
            data = (double)data.Length;
            data = data * 3.5 + 28.6;
            if(data == 2.4 + 112 + 26.2)
                // The distance (in miles) for the swim, bike, and
                // run portions of an Ironman triathlon, respectively
            {
                Console.WriteLine(
                    $"{data} makes for a long triathlon.");
            }
            else
            {
                data.NonExistentMethodCallStillCompiles();
            }
            // ...
            #endregion INCLUDE
        }
    }
}
